	
/****** Object:  Stored Procedure TerritoriesInsert    Script Date: Monday, December 10, 2007 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spTerritoriesInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [spTerritoriesInsert]
GO

	
	

/******************************************************************************
**		File: 
**		Name: spTerritoriesInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 12/10/2007 10:20:43 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE spTerritoriesInsert
	@Description nvarchar(100),
	@CountryID int,
	@TerritoryID int output
AS

INSERT INTO [Territories] 
(
	[Description],
	[CountryID]
) 
VALUES 
(
	@Description,
	@CountryID
)

SELECT @TerritoryID = @@IDENTITY

GO
	
